package com.xin.enums;

public enum ResponseEnums {
    SUCCESS(200, "请求成功" ),
    ADDUSER_SUCCESS(200,"添加用户成功"),
    DELETE_USER_SUCCESS(200,"用户信息删除成功"),
    UPDATE_USER_SUCCESS(200,"用户信息修改成功"),
    ERROR(500,"内部服务器未知异常");

    private Integer code;

    private String  msg;

    ResponseEnums() {
    }

    ResponseEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
